#include "test_mgr.h" 
#include <stdio.h>

int main(int argc, char **argv) {
    if (argc < 2) {
        fprintf(stderr, "usage: %s pid.\n", argv[0]);
        return -1;
    }
    
    uv_loop_t* loop = uv_default_loop();
    if(!loop) {
        printf("create default loop error.\n");
        return -1;
    }

    test_mgr::get()->start_login(atoi(argv[1]));
    uv_run(loop, UV_RUN_DEFAULT);

    return 0;
}
